#{extends 'main.html' /}
#{set title:'Register' /}

<h1>Create new account</h1>
<form action="@{Usercontroller.Register()}" method="GET"

      oninput="myCpass.setCustomValidity(myCpass.value != myPass.value ? 'Passwords do not match.' : '')">
 <p>
  <label for="usermail">E-mail address:</label><br/>
  <input id="usermail" type=email required="true"  name=myMail>
<p>

  <label for="username">Name:</label><br/>
  <input id="username" type=text required="true" name=myName>
 <p>
 
  <label for="password1">Password:</label><br/>
  <input id="password1" type=password required="true"  name=myPass>
 <p>
  <label for="password2">Confirm password:</label><br/>
  <input id="password2" type=password required="true" name=myCpass><br/>
 <p>
  <input type=submit value="Create account">
</form>




<a href="@{Usercontroller.index()}">To login</a>